import { createApp } from "vue";
import {
  Col,
  Row,
  Tabbar,
  TabbarItem,
  NavBar,
  Tab,
  Tabs,
  CountDown,
  Search,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  DropdownMenu,
  DropdownItem,
  Button,
  PullRefresh,
  Toast,
  Cell,
  CellGroup,
  Form,
  Field,
  NumberKeyboard,
  Switch,
  Icon,
  List,
  Empty,
  ShareSheet,
  Popup,
  TreeSelect,
  Image as VanImage,
  Picker,
  DatetimePicker,
} from "vant";

import App from "./App.vue";
import router from "./router";
import store from "./store";
import "amfe-flexible";
// 引入重置css样式
import "./assets/css/reset.less";
import "./assets/font/iconfont.css";

createApp(App)
  .use(store)
  .use(router)
  .use(Tabbar) //底部导航
  .use(TabbarItem)
  .use(NavBar) //头部
  .use(Tab) //Tab切换
  .use(Tabs)
  .use(CountDown) //倒计时
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(DropdownMenu) //下拉菜单
  .use(DropdownItem) //下拉菜单
  .use(Button) //按钮
  .use(Col)
  .use(Row)
  .use(Toast) //轻提示
  .use(PullRefresh)
  .use(Form)
  .use(Field)
  .use(Cell)
  .use(CellGroup)
  .use(NumberKeyboard)
  .use(Switch) //签到功能
  .use(Icon)
  .use(List)
  .use(Empty) //空状态
  .use(ShareSheet) //分享面板
  .use(VanImage)
  .use(Popup) //弹出框
  .use(Picker) //Picker
  .use(DatetimePicker) //Picker
  .use(TreeSelect) //分类选择
  .mount("#app");
